//默认值
var defaultValue={
	CurrentContractConfirmErrors:"[]",
	ShowContractImport:"false",
	ContractWaitConfirmTime:2
};
//遍历defaultValue
//获取所有key
var allKey = Object.keys(defaultValue);
for(var i = 0;i <allKey.length;i++){
	var k = allKey[i];
	if(localStorage[k]==undefined){
		localStorage[k]=defaultValue[k];
	}
}

chrome.runtime.onMessage.addListener(function (request, sender, callback) {
	methods[request.page][request.method](request,callback);
});